package entity;

/**
 * @Description: TODO
 * @author: muxiongxiong
 * @date: 2021年07月06日 8:23
 * 公众号：雄雄的小课堂
 * 博客：https://blog.csdn.net/qq_34137397
 * 个人站：http://www.穆雄雄.com
 * 个人站：http://www.muxiongxiong.cn
 */
public class Bike extends Car {

    private String leixing;

    public Bike() {
    }

    public Bike(String leixing) {
        this.leixing = leixing;
    }

    public Bike(String cname, String ctype, String ccolor, double cprice, String leixing) {
        super(cname, ctype, ccolor, cprice);
        this.leixing = leixing;
    }

    @Override
    public void show() {
        System.out.println("车的名字是：" + super.getCname());
        System.out.println("车的类型是：" + super.getCtype());
        System.out.println("车的颜色是：" + super.getCcolor());
        System.out.println("车的价格是：" + super.getCprice());
        System.out.println("自行车的类型是：" + this.leixing);
    }

    public String getLeixing() {
        return leixing;
    }

    public void setLeixing(String leixing) {
        this.leixing = leixing;
    }
}
